]> dgit.raspbian.org Git - gnome-shell.git/commit
windowManager: Generalize translation values
authorAlessandro Bono <abono@gnome.org>
Sat, 20 May 2017 14:34:35 +0000 (16:34 +0200)
committerAlessandro Bono <abono@gnome.org>
Wed, 24 May 2017 19:10:28 +0000 (21:10 +0200)
commit0dca5e513b521edfc40842478bb34969b60478b1
treef8ee8ba7a6eca4f7f2519bdd1b95246052eca7b8
parent70905924772977991448b70e3067132b629f8433
windowManager: Generalize translation values

Currently, the translation values are set with the assumption that
one of the actors represents a fullscreen window. In order to
generalize it for any size change transition, we can simply swap
the monitor rect with the source or target rect as appropriate,
and translate the actor from the target to the source position by
subtracting the former and adding the latter.

https://bugzilla.gnome.org/show_bug.cgi?id=766685
js/ui/windowManager.js